package com.xinchuang.initializrdemo.config;

import com.xinchuang.initializrdemo.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration // 告诉springboot 这是一个配置类
//@SpringBootConfiguration
public class ReturnBeanConfig {
    @Bean
    public User userBean(){
        return new User("999","奥特曼",21);
    }
}
